const routes = [
  { path: '/login', component: '@/pages/login', title: '登录' },
  {
    exact: false,
    path: '/',
    component: '@/layouts/index',
    title: '首页',
    routes: [
      { path: '/test', component: '@/pages/test' },
      {
        path: '/user',
        routes: [
          {
            path: '/user/add',
            component: '@/pages/user/add',
            title: '添加用户',
          },
          {
            path: '/user/list',
            component: '@/pages/user/list',
            title: '用户列表',
          },
        ],
      },
    ],
  },
];

export default routes;
